package com.woniuxy.springboot03configfile.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "org.giles")
public class User {
    private String name;
    private int age;
    private String introduce;
    private String value;
    private int v1;
    private long v2;
    private int v3;
    private int v4;
    private String[] hobby;
    private List<String> lists;
    private Set<String> sets;
    private Map<String,String> maps;
    private Date birthday;
    private List<Phone> phones;
}
